﻿@using ABP.TPLMS.Web.Models.Common.Modals
@model ABP.TPLMS.Web.Models.Supplier.EditSupplierModalViewModel

@{

    Layout = null;

}

@Html.Partial("~/Views/Shared/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(L("EditSupplier")))

<div class="modal-body">
    <form name="SupplierEditForm" role="form" novalidate class="form-validation">
        <input type="hidden" name="Id" value="@Model.Supplier.Id" />

        <div>
            <div class="row clearfix">

                <div class="col-sm-6">
                    <div class="form-group form-float">
                        <div class="form-line">
                            <label asp-for="@Model.Supplier.Code" class="form-label"></label>
                            <input type="text" name="Code" class="form-control" required maxlength="50" />

                        </div>
                    </div>
                </div>

                <div class="col-sm-6">
                    <div class="form-group form-float">
                        <div class="form-line">

                            <label asp-for="@Model.Supplier.Name" class="form-label"></label>

                            <input type="text" name="Name" class="form-control" required maxlength="50" />
                        </div>
                    </div>
                </div>
            </div>

            <div class="row clearfix">
                <div class="col-sm-12">
                    <div class="form-group form-float">

                        <div class="form-line">

                            <label asp-for="@Model.Supplier.Address" class="form-label"></label>

                            <input type="text" name="Address" class="form-control" required maxlength="255" />

                        </div>
                    </div>
                </div>
            </div>

            <div class="row clearfix">
                <div class="col-sm-6">
                    <div class="form-group form-float">
                        <div class="form-line">
                            <label asp-for="@Model.Supplier.LinkName" class="form-label"></label>

                            <input type="text" name="LinkName" class="form-control" />

                        </div>
                    </div>
                </div>

                <div class="col-sm-6">
                    <div class="form-group form-float">
                        <div class="form-line">

                            <label asp-for="@Model.Supplier.Mobile" class="form-label"></label>
                            <input type="text" name="Mobile" class="form-control" />

                        </div>
                    </div>
                </div>
            </div>

            <div class="row clearfix">
                <div class="col-sm-6">
                    <div class="form-group form-float">
                        <div class="form-line">
                            <label asp-for="@Model.Supplier.Tel" class="form-label"></label>

                            <input type="text" name="Tel" class="form-control" required maxlength="255" />

                        </div>
                    </div>

                </div>

                <div class="col-sm-6">
                    <div class="form-group form-float">

                        <div class="form-line">
                            <label asp-for="@Model.Supplier.Status" class="form-label"></label>

                            <input type="text" name="Status" class="form-control" />
                        </div>
                    </div>
                </div>
            </div>
            <div class="row clearfix">

                <div class="col-sm-6">
                    <div class="form-line">

                        <label asp-for="@Model.Supplier.Sex"></label>

                        <input name="Sex" type="text" class="form-control" />

                    </div>
                </div>

                <div class="col-sm-6">
                    <div class="form-line">
                        <label asp-for="@Model.Supplier.Email"></label>

                        <input name="Email" type="text" class="form-control" />

                    </div>
                </div>
            </div>

        </div>
    </form>
</div>
@Html.Partial("~/Views/Shared/Modals/_ModalFooterWithSaveAndCancel.cshtml")

<script src="~/view-resources/Views/Supplier/_EditSupplierModal.js" asp-append-version="true"></script>